package com.funlog.designpattern.composite.demo01;

public class Leaf implements Component {
    private String name;

    public Leaf(String name){
        this.name=name;
    }

    @Override
    public void operation() {
        System.out.println("It's "+this.name);
    }
}
